import { defineStore } from "pinia";
import type { Tcourse } from "@/models/course";
import type { Tsourcefile } from "@/models/sourcefile";
import { ref } from "vue";

export const useCourseInfo = defineStore("courseinfo", () => {
    const courseinfo = ref<Tcourse>();
    const sourlist = ref<Tsourcefile[]>([]);

    return { courseinfo,sourlist }

}, { persist: true });
